import { fetchReader } from '@/utils/requestQueue';

const getFetchSse = (data: any) => {
  return fetchReader('/api/v1/interview/chat', {
    method: 'POST',
    body: JSON.stringify(data), // 仅用于测试，不推荐生产环境使用
    headers: {
      'Content-Type': 'application/json',
      Authorization: localStorage.getItem('token') || '',
    },
  } as RequestInit);
};

export { getFetchSse };
